package com.haizhi.crm.sys.message.service;

import com.haizhi.crm.sys.message.model.MessageCategoryDo;
import com.haizhi.crm.sys.message.model.MessageCategoryVo;

import java.util.List;

/**
 * Created by wangshan on 2018/5/16.
 */
public interface MessageCategoryService {

    List<MessageCategoryVo> query();

    void saveOrUpdate(List<MessageCategoryVo> messageCategoryVos);

    void delete(String name);

    void delete(Long msgCategoryId);

    void deleteAll();

    MessageCategoryDo find(String sourceName);

    MessageCategoryDo findParentTypeById(Long messageCategoryId);

}
